﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class SystemManage_SystemMenu : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (_User.Competences.CompetencesList == "")
        {
            PublicFunction.GoError(ErrorNumber.NotEnoughCompetence, "对不起，您没有足够的权限访问此页面", "Admin_Default");

            return;
        }
    }

    #region Web 窗体设计器生成的代码

    override protected void OnInit(EventArgs e)
    {
        isRequestLogin = true;

        base.OnInit(e);
    }

    #endregion

    protected void lbtnLogout_Click(object sender, EventArgs e)
    {
        if (_User != null)
        {
            string ReturnDescription = "";

            _User.Logout(ref ReturnDescription);
        }

        Response.Write("<script language=\"javascript\">window.top.location.href=\"../Default.aspx\"</script>");
    }
}
